package com.example.sxmall.service;

import com.example.sxmall.common.dto.MailDto;
import com.example.sxmall.dao.pojo.Admins;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhang
 * @since 2022-03-22
 */

public interface AdminsService extends IService<Admins> {
    //根据账户得到admins
    Admins getByAdminsName(String username);

    //获取用户权限
    String getAdminsAuthorityInfo(Integer adminsId);

    void clearAdminAuthorityInfo(String username);
    void clearAdminAuthorityInfoByPermisId(Integer permissionId);
    void clearAdminAuthorityInfoByPerconId(Integer pctId);


    Result sendMail(MailDto mailDto);
}
